import request from '@/utils/request';
// 概览

// 概览详情列表
export function queryImplementationIndicators(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/indicatorReporting/queryImplementationIndicators',
		method: 'post',
		data: data,
		headers: {
			version: 'LSH',
		},
	});
}

// 概览详情列表
export function queryOperationalIndicators(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/indicatorReporting/queryOperationalIndicators',
		method: 'post',
		data: data,
		headers: {
			version: 'LSH',
		},
	});
}

// 全部单位异常能力数查询
export function orgTypeAbnormalAbility(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/platformOverview/orgTypeAbnormalAbility',
		method: 'post',
		data: data,
		headers: {
			version: 'lijunhang',
		},
	});
}
// 运营-导出
export function queryOperationalDown(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/indicatorReporting/queryOperationalDown',
		method: 'post',
		data,
		responseType: 'blob',
		headers: {
			version: 'LSH',
		},
	});
}

// 实时-导出
export function queryImplementationDown(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/indicatorReporting/queryImplementationDown',
		method: 'post',
		data,
		responseType: 'blob',
		headers: {
			version: 'LSH',
		},
	});
}
